const db = uniCloud.database();
const {
	result
} = require("xzs-utils");
module.exports = {
	_before: function() { // 通用预处理器

	},
	get: async function() {
		let data = await db.collection("mysite-project").field({
			_id: true,
			title: true,
			projectLabel: true,
			description: true,
			projectURL: true,
			avatar: true
		}).get()
		return result(0, "success", data, data.data.length)
	},
}